package events.packageEvents;

import layers.agents.PackageAgent;
import layers.physical.Crossroad;
import framework.events.Event;
import framework.layer.physical.position.ContinuousPosition;

public class PackageCreatedEvent extends Event {

	private int packageId;
	private ContinuousPosition position;
	private Crossroad origin;
	private PackageAgent agent;

	public PackageCreatedEvent(int id, PackageAgent agent, ContinuousPosition position, Crossroad origin) {
		this.packageId = id;
		this.position = position;
		this.agent = agent;
	}

	public ContinuousPosition getPosition() {
		return position;
	}

	public Crossroad getOriginCrossroad() {
		return this.origin;
	}

	public int getPackageId() {
		return this.packageId;
	}
	
	public PackageAgent getPackageAgent(){
		return this.agent;
	}
}
